package com.my.controller;


import com.my.BusinessProvider;
import com.my.service.IBusinessService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@SpringBootTest(classes = BusinessProvider.class)
@RunWith(SpringJUnit4ClassRunner.class)
public class BusinessServiceTest {
    IBusinessService businessService;

    @Autowired
    public void setBusinessService(IBusinessService businessService) {
        this.businessService = businessService;
    }

    @Test
    public void testSendEmailMessage() {
        System.out.println(businessService.sendEmailMessage("1286856721@qq.com"));
    }
}
